home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / PROGBLER / HERCBIOS.LZH / HERCBIOS.H < prev    next >
Text File  |  1980-01-01  |  2KB  |  56 lines

  1.  
  2. .XLIST
  3.        page    66,132
  4. ;************************************************************
  5. ;
  6. ;      Header file for inclusion in HERCBIOS assemblies
  7. ;
  8. ;              Dave Tutelman - 8/86
  9. ;
  10. ;*************************************************************
  11.  
  12. ;iAPX286        equ     1       ; UN-COMMENT FOR A 186 or 286 MACHINE!
  13.                                ;   Some of the "ugly" constructs are for speed
  14.                                ;   on the 808X, while the "obvious" constructs
  15.                                ;   run faster on the 186 & 286.
  16. VIDI           equ     10H     ; video interrupt, 10H for real, 50H for debug
  17. pixbase                equ     0B000H  ; beginning segment of graphics board
  18. mpx_bios       equ     0F000H  ; MPX-16 BIOS segment address
  19. vid_offset     equ     0F065H  ; MPX-16 video offset in BIOS
  20. charbase       equ     0FA6EH  ; MPX-16 BIOS character table offset
  21. herc_mode      equ     8       ; Hercules graphics mode
  22. ibm_mode       equ     6       ; IBM Hi-Res color graphics mode.
  23.                                ; we'll try to handle it.
  24. vid_port       equ     03B4H   ; 6845 index register (data reg = 3B5H )
  25.                                ;                     (control port = 3B8H )
  26. ;------------------------------------------
  27. bios   segment at      mpx_bios        ; setup call to vid_bios
  28.                org     vid_offset
  29. vid_bios       proc    far
  30. vid_bios       endp
  31. bios           ends
  32. ;------------------------------------------------
  33. bios_data    segment at 040h
  34.                org     049h
  35. video_mode     db      ?       ; current video mode
  36. n_cols         dw      ?       ; number of columns in video display
  37.                org     050h
  38. curs_pos       dw      8 dup(?) ; cursor for each of 8 pages
  39. curs_mode      dw      ?       ; cursor mode
  40. active_page    db      ?       ; current active display page
  41. video_base     dw      ?       ; video port base
  42. chip_ctrl      db      ?       ; current setting of 3X8 register
  43. bios_data ends
  44. ;------------------------------------
  45. intvec      segment at 0               ; interrupt vector
  46.                org     4*1Fh           ; interrupt 1FH
  47. user_table     dd      ?
  48. intvec      ends
  49. ;------------------------------------
  50.  
  51. IFDEF  iAPX286
  52.        .286c                   ; allow 286/186-only instructions
  53. ENDIF
  54.  
  55. .LIST
  56.